package org.popupcommunication.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

@Entity
public class Agenda implements Serializable{
	@Transient
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private int id;	
	
	@Column(nullable = false, length = 150)
	private String titre;	

	private String img;	
	
    @Temporal(TemporalType.DATE)
    @Column(nullable=true)
    private Date dateDebut;	
    
    @Temporal(TemporalType.DATE)
    @Column(nullable=true)
    private Date dateExpiration;
    
    @Lob
    @Column(nullable=true, length = 4000)    
    private String description;  
    
    private Boolean marquerCommeFait;
    
    @Temporal(TemporalType.DATE)
    @Column(nullable=true)
    private Date dateCreation;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTitre() {
		return titre;
	}

	public void setTitre(String titre) {
		this.titre = titre;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public Date getDateDebut() {
		return dateDebut;
	}

	public void setDateDebut(Date dateDebut) {
		this.dateDebut = dateDebut;
	}

	public Date getDateExpiration() {
		return dateExpiration;
	}

	public void setDateExpiration(Date dateExpiration) {
		this.dateExpiration = dateExpiration;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getDateCreation() {
		return dateCreation;
	}

	public void setDateCreation(Date dateCreation) {
		this.dateCreation = dateCreation;
	}

	public Boolean getMarquerCommeFait() {
		return marquerCommeFait;
	}

	public void setMarquerCommeFait(Boolean marquerCommeFait) {
		this.marquerCommeFait = marquerCommeFait;
	}


    
    
}
